package com.baizhi.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
//管理后台的医生表t_manager
public class Manager implements Serializable {
    private Integer mid;
    private String username;
    private String password;
    private String realname;
    private Integer sex;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birth;
    private String mobile;
    private String email;
    private String pic;
    private Department department;

    public Manager() {
    }

    public Manager(Integer mid, String username, String password, String realname, Integer sex, Date birth, String mobile, String email, String pic, Department department) {
        this.mid = mid;
        this.username = username;
        this.password = password;
        this.realname = realname;
        this.sex = sex;
        this.birth = birth;
        this.mobile = mobile;
        this.email = email;
        this.pic = pic;
        this.department = department;
    }

    public Integer getMid() {
        return mid;
    }

    public void setMid(Integer mid) {
        this.mid = mid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    @Override
    public String toString() {
        return "Manager{" +
                "mid=" + mid +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", realname='" + realname + '\'' +
                ", sex=" + sex +
                ", birth=" + birth +
                ", mobile='" + mobile + '\'' +
                ", email='" + email + '\'' +
                ", pic='" + pic + '\'' +
                ", department=" + department +
                '}';
    }
}
